package com.rbac.api.controller.request;


import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Size;

///角色增加
public class PostRoleAddRequest {

    ///自定义编号（手动输入来保证唯一，用途是对某一类角色操作时）
    @Size(max = 32,message = "post.common.role.diy.no.max.length.fail")
    protected String roleDiyNo;
    ///角色名称
    @NotEmpty(message = "post.common.role.name.not.null")
    @Size(max = 60,message = "post.common.role.name.max.length.fail")
    protected String roleName;
    ///角色描述
    @Size(max = 500,message = "post.common.role.content.max.length.fail")
    protected String roleContent;
    ///管理员成员：管理员编号英文逗号分隔
    protected String usersMember;
    ///菜单成员：菜单编号英文逗号分隔
    protected String menusMember;


    @Override
    public String toString() {
        return "PostRoleAddRequest{" +
                "roleDiyNo='" + roleDiyNo + '\'' +
                ", roleName='" + roleName + '\'' +
                ", roleContent='" + roleContent + '\'' +
                ", usersMember='" + usersMember + '\'' +
                ", menusMember='" + menusMember + '\'' +
                '}';
    }

    public String getRoleDiyNo() {
        return roleDiyNo;
    }

    public void setRoleDiyNo(String roleDiyNo) {
        this.roleDiyNo = roleDiyNo;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleContent() {
        return roleContent;
    }

    public void setRoleContent(String roleContent) {
        this.roleContent = roleContent;
    }

    public String getUsersMember() {
        return usersMember;
    }

    public void setUsersMember(String usersMember) {
        this.usersMember = usersMember;
    }

    public String getMenusMember() {
        return menusMember;
    }

    public void setMenusMember(String menusMember) {
        this.menusMember = menusMember;
    }
}
